package com.ruoyi.applet.service.impl;

import java.util.List;

import com.ruoyi.applet.domain.vo.UsrBrowseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.applet.mapper.CategoryMapper;
import com.ruoyi.applet.domain.Category;
import com.ruoyi.applet.service.ICategoryService;

import javax.annotation.Resource;

/**
 * 分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@Service
public class CategoryServiceImpl implements ICategoryService 
{
    @Resource
    private CategoryMapper categoryMapper;


    @Override
    public List<Category> selectAllByCategoryParentLevelList() {
        return categoryMapper.selectAllByCategoryParentLevelList();
    }

    @Override
    public List<Category> selectAllByCategoryIdCategoryList(Long categoryId) {
        return categoryMapper.selectAllByCategoryIdCategoryList(categoryId);
    }

    @Override
    public List<UsrBrowseVo> selectAllByCategoryNameList(String categoryName) {
        return categoryMapper.selectAllByCategoryNameList(categoryName);
    }
}
